home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete RPG Maker XP - 41 Games
/
tg esp 48 rpg maker.iso
/
RPG3D
/
Tools_Utilities
/
Quark.exe
/
Quark
/
help
/
zips
/
OOP_examples.ZIP
/
circles.py
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2003-04-26
|
289 b
|
15 lines
import math
class Circle:
def __init__(self, x, y, z, r):
self.x = x
self.y = y
self.z = z
self.radius = r
def circumference(self):
return self.radius*math.pi
def radius(self):
return self.radius